Skip to content

Testing/Build Workflows #266

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 37 commits into from
Jun 12, 2025

Conversation

andrewfulton9
Copy link
Contributor

Copybara overwrote these previously merged commits. This PR adds them back in. Note that currently the build fails due to some dependency versions only being available via nightly builds

@andrewfulton9 andrewfulton9 mentioned this pull request May 13, 2025
@andrewfulton9
Copy link
Contributor Author

TODO: move test dependencies hardcoded in test.yml to extras-require as discussed here

aktech and others added 27 commits June 12, 2025 10:52
* Add build workflow via docker

* rename docker-compose to docker compose

* add twine check and upload to PyPi

* add workflow_dispatch

* install twine before twine check
1. To ensure test compatibility between NumPy v1 and v2 environments, we've adjusted the comparison tolerance to 1e-4. This accommodates slight variations (around 1e-4) in floating-point outcomes between the two NumPy versions. Additionally, we've modified the expected proto float to align with NumPy v2 results.
2. For mutual_information, NumPy v2 is able to handle values > 2**53 if the min and max of the examples are the same. However, since we need to be compatible with NumPy v1 and v2, for related unit tests, we check for the NumPy version before running the associated unit tests.

PiperOrigin-RevId: 681598675
name: data-validation-wheel-py${{ matrix.python-version }}
path: dist/*.whl

- name: Install built wheel

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be installing the wheel in the runner?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just updated the name. Good catch!

Copy link

@peytondmurray peytondmurray left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few things:

  1. Change the reusable-build action to not say Install built wheel, since we're not doing that
  2. Update the places where @pytest.mark.xfail(run=False, reason="PR 260 This test fails and needs to be fixed.") is to either remove the mention of the PR, or point to the correct PR (266)
  3. Can you make an issue to remove all the calls to absltest.main since we're no longer using absl to run tests?

@andrewfulton9
Copy link
Contributor Author

A few things:

1. Change the `reusable-build` action to not say `Install built wheel`, since we're not doing that

2. Update the places where `@pytest.mark.xfail(run=False, reason="PR 260 This test fails and needs to be fixed.")` is to either remove the mention of the PR, or point to the correct PR (266)

3. Can you make an issue to remove all the calls to `absltest.main` since we're no longer using absl to run tests?

1 and 2 have been addressed, and I opened #271 to address 3

@peytondmurray
Copy link

Merging; with the current dependency on zetasql, this build will time out. We'll be introducing a PR to remove the zetasql dependency later on, at which point these workflows will become relevant.

@peytondmurray peytondmurray merged commit 2f54c47 into tensorflow:master Jun 12, 2025
1 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants